import { Navigate, Route, Routes, BrowserRouter as Router } from "react-router-dom"
import ReturnVisit from './pages/orderreturnvisit';
import NotFound from './pages/notfound/index.js';
import Home from './pages/home'

function App() {
  return (
    <Router basename="/xlxf">
      <Routes>
        <Route path="/home" element={<Home />} />


        {/* 将根路径 / 重定向到 /orv */}
        <Route path="/" element={<Navigate to="/orv" replace />} />


        {/* 不用动 */}
        <Route path="/orv" element={<ReturnVisit />} />
        <Route path="*" element={<NotFound />} />
      </Routes>
    </Router>
  );
}

export default App;



